<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			windwo.onload = function(){
				init();
			}
			
			// 很多人协同开发，把开发好的功能封装到init函数里
			function init(){
				initCompute();
				initFunctions();
			}
			
			// 计数器模块化开发
			var initCompute = (function(){
				var a = 1;
				var b = 1;
				function add(){}
				function minus(){}
				function mul(){}
				function div(){}
				
				xxx.onclick = function(){
					div();
				}
				
				return function(){
					add();
					minus();
					mul();
				}
				
			})();
			
			// 轮播图(插件开发)
			;(function(){
				var Slider = function(){}
				Slider.prototype = {}
				
				window.Slider = Slider;
			})
			
			Slider();
		</script>
	</body>
</html>
